from peewee import CharField
from common.model.abstrct import AbstractModelWithID


class TotalLanguage(AbstractModelWithID):

    class Meta:
        table_name = "tb_language"
        indexes = (
            (("code", ), True),
        )
    name = CharField(max_length=8, help_text="语言名字")
    code = CharField(max_length=8, help_text="语言code")

